/*    */ package handling.login.handler;
/*    */ 
/*    */ import client.MapleClient;
/*    */ import handling.login.LoginServer;
/*    */ import tools.packet.LoginPacket;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ServerStatusRequestHandler
/*    */ {
/*    */   public static void handlePacket(MapleClient c) {
/* 22 */     int numPlayer = LoginServer.getUsersOn();
/* 23 */     int userLimit = LoginServer.getUserLimit();
/* 24 */     if (numPlayer >= userLimit) {
/* 25 */       c.announce(LoginPacket.getServerStatus(2));
/* 26 */     } else if (numPlayer >= userLimit * 0.8D) {
/* 27 */       c.announce(LoginPacket.getServerStatus(1));
/*    */     } else {
/* 29 */       c.announce(LoginPacket.getServerStatus(0));
/*    */     } 
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\handling\login\handler\ServerStatusRequestHandler.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */